<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page import ="java.util.Date" %>

<img src="/Derpizza/img/derpina.jpg"/>


<c:choose>
<c:when test="${sessionScope.nomUser==null}" >
	<p>Bienvenue, nous sommes le <fmt:formatDate value="<%= new Date() %>" pattern="dd/MM/yyyy" /></p>
	<%@ include file="connexion.jsp" %>
</c:when>

<c:otherwise>
	<p>Bienvenue <c:out value="${sessionScope.nomUser}" />
	nous sommes le <fmt:formatDate value="<%= new Date() %>" pattern="dd/MM/yyyy" /><br /> 
	<a href="/Derpizza/SeDeconnecter">Se Deconnecter</a>
	</p>
</c:otherwise>

</c:choose>